package com.easyskool.constants;

import com.easyskool.hibernate.model.Schools;

public class CommonConstants {

	public static final String WHERE_CLAUSE = "whereClause";
	public static final String UPDATE_CLAUSE = "updateClause";
	public static final String ACCESS_GROUPS = "accessGroup";
	public static final String ADMIN_GROUP = "adminGroup";
	

	public static final String SUCCESS= "success";
	public static final String FAIL = "fail";
	public static final String ERROR = "An error occured!";
	public static final String ERROR_ = "error";
	
	public static final String CREATE = "create";
	public static final String SCHOOL_CODE = "schoolCode";
	public static final String GET = "get";
	public static final String UPDATE = "update";
	public static final String DELETE = "del";
	public static final String AUTH_STATUS = "authStatus";
	public static final String AUTH_FAIL = "authFail";
	public static final String NOT_SIGNED_IN = "notSignedIn";
	public static final String WRONG_USER = "wrongUser";
	
	public static final String USERNAME = "username";
	public static final String ROLE = "role";
	public static final String OPERATION = "operation";
	public static final String WEBSITE_DOMAIN = "http://localhost:8010";
	public static final String NOT_FOUND = "notFound";
	public static final String REDIRECT_URL = "http://www.google.com";
	public static final String REDIRECT_URL2 = "http://www.yahoo.com";
	public static final String LOGIN_URL =WEBSITE_DOMAIN+"/easyskool/Login/login.jsp?auth=fail";
	public static final String SYSTEM ="system";
	public static final String WEBSITE ="website";
	public static final String USERCODE ="userCode";
	public static final String RECORD_SAVED_SUCCESSFULLY ="Record Saved Successfully";
	public static final String RECORD_DELETED_SUCCESSFULLY ="Record Deleted Successfully";
	public static final String ERROR_STORING_RECORD ="Error Storing Record";
	public static final String ERROR_REMOVING_SOME_RECORD ="Some records were not removed successfully";
	public static final String FIELD = "fields";
	public static final String CLASS_CODE = "classCode";
	public static final String RECORD_REMOVED_SUCCESSFULLY = "Record Removed Successfully";
	// for development environment set this variable to true, 
//	it will by pass all filters and gives you all the access without having to initialize any default variable
//	not recommended for use while developing UI, recommended for developing the Java part only 
//	AND REMEMBER!!!!!!!!!!!!!!!!! BEFORE COMMITING TEST THE CODE TEST WITH dev=false
//	the session variables are initialized according to below mentioned params
//	if you need to do any changes to the values of the session variables do it here
	public static final boolean dev = true;
	public static final String ACCESSGROUP_DEV = "admingroup";
	public static Schools SCHOOL_DEV = new Schools();
	public static final String USERCODE_DEV = "admin";
	
	public CommonConstants()
	{
		SCHOOL_DEV.setSchoolCode("school");
	}

	// for development environment set this variable to true, 
//	it will by pass all filters and gives you all the access without having to initialize any default variable
//	not recommended for use while developing UI, recommended for developing the Java part only 
//	AND REMEMBER!!!!!!!!!!!!!!!!! BEFORE COMMITING TEST THE CODE TEST WITH dev=false
//	the session variables are initialized according to below mentioned params
//	if you need to do any changes to the values of the session variables do it here
	
	
	
	
	
	
}
